package com.smedi.ismedi.authority.starter.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: xulinjun
 * @Date: 2021-7-7 10:09
 */
@Data
@Component
@ConfigurationProperties(prefix = "authority-web-starter.interceptor.api-url")
public class AuthorityInterceptorApiProperty {
    /**
     * 是否鉴权
     */
    private boolean authenticate;

    /**
     * 需要拦截的api地址
     */
    private String[] add;

    /**
     * 需要排除的api地址
     */
    private String[] exclude;

    /**
     * 打印日志
     */
    private boolean printLog = true;
}
